<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateOrganizationTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('organization', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name', 60);
            $table->integer('cat_id', false, true);
            $table->string('address', 60);
            $table->string('telphone', 12);
            $table->text('breif');
            $table->text('introduction');
            $table->text('activities');
            $table->mediumInteger('province', false, true);
            $table->integer('city', false, true);
            $table->integer('area', false, true);
            $table->timestamps();
            $table->timestamp('start_at');
            $table->timestamp('end_at');
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('organization');
    }
}
